<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'base.item.class.php');

class _ProductSpecificationBase extends BaseItemBase {
	
	//constructor
	function _ProductSpecificationBase() {
		parent::BaseItemBase();
		
		$this->table = 'pp_products_specs';
		$this->prefix = 'specs_';
	}
	
	//methods
}

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/product/product.field.class.php');
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/product/product.field.value.class.php');

class ProductSpecificationBase {
	var $pfObj = NULL;
	var $pfvObj = NULL;
	
	//product id
	var $pid = 0;
	
	//constructor
	function ProductSpecificationBase() {
		$this->pfObj = new ProductFieldBase();
		$this->pfObj->format = true;
		
		$this->pfvObj = new ProductFieldValueBase();
		$this->pfvObj->format = true;
	}
	
	function setPID($pid) {
		$this->pid = $pid;
	}
	
	function setProductID($pid) {
		$this->pid = $pid;
	}	
	
	//methods
	function getFields() {
		return $this->pfObj->getItems('', 0, false);
	}
	
	function getFieldsValues() {
		return false;
	}
}
//
?>